var path = require('path');
var config = {
  apiPath: '/',
  api: {
    getBanner: '/slideShow/getSlideShow.json',
    foreign: '/list/getOutbound.json?orgCity={orgCity}&pageNum={pageNum}&pageSize={pageSize}', //出国游
    domestic: '/list/getDomestic.json?orgCity={orgCity}&pageNum={pageNum}&pageSize={pageSize}', //国内游
    cruise: '/list/getCruise.json?orgCity={orgCity}&pageNum={pageNum}&pageSize={pageSize}',   //游轮
    surround: '/list/getSurround.json?orgCity={orgCity}&pageNum={pageNum}&pageSize={pageSize}', //周边游
    cityList: '/city/getCityList.json'
  },
  // db: {
  //   database: 'hote-dev',
  //   username: 'root',
  //   password: 'wgz123',
  //   host: '127.0.0.1'
  // },
  db: {
    database: 'hote-pro',
    username: 'admin',
    password: 'Test1234!',
    host: '127.0.0.1'
  },
  upload: {
    temp: '/tmp',
    rootPath: '/img',
    path: path.join(process.cwd(), 'public', 'img')
  },
  frontend: {
    jsPath: '/js',
    cssPath: '/css',
    imagePath: '/images'
  },
  build: {
    assetsRoot: path.resolve(__dirname, '../../dist'),
    assetsSubDirectory: '/public',
    assetsPublicPath: '',
  },
  dev: {
    assetsSubDirectory: '/public',
    assetsPublicPath: '',
  },
  server: {
    url        : 'local.hotedManage.com',
    port       : 8000,
    staticPort : 8001
  }
}

module.exports = config;